package com.xdf.zipperdye.dao.business;

import com.xdf.zipperdye.model.CpDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CpDetailMapper {
    int deleteByPrimaryKey(Integer iid);

    int insert(CpDetail record);

    int insertSelective(CpDetail record);

    CpDetail selectByPrimaryKey(Integer iid);

    int updateByPrimaryKeySelective(CpDetail record);

    int updateByPrimaryKey(CpDetail record);

    int multiInsert(List<CpDetail> records);

    int multiUpdate(List<CpDetail> records);

    List<CpDetail> selectByParentId(@Param("parentId") Integer parentId);

    int deleteByParentId(@Param("parentId") Integer parentId);
}